import request from '@/utils/request'

export function getCode(mobile) {
  return request({
    url: '/api/v1/sms/?mobile=' + mobile,
    method: 'post'
  })
}
/* 个人注册
* params  {"captcha": "string",
   "mobile": "string",
   "password": "string"
   }
}
* */
export function registerUser(params) {
  return request({
    url: '/api/v1/auth/reg',
    method: 'post',
    data: params
  })
}
/* 注册公司
*   /api/v1/auth/register/company
* {
  "address": "string",
  "contact": "string",
  "name": "string",
  "taxIdentificationCode": "string",
  "userId": "string"
}
* */
export function registerCompany(params) {
  return request({
    url: '/api/v1/auth/register/company',
    method: 'post',
    data: {
      params
    }
  })
}
